<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">  
<title>编辑</title>  
<link rel="stylesheet" type="text/css" href="/Public/css/Layout.css">
<link rel="stylesheet" type="text/css" href="/Public/css/Theme.css">
<link rel="stylesheet" type="text/css" href="/Public/css/DefaultUI.css">

<script type="text/javascript" src="/Public/js/JQuery.js"></script>
<script type="text/javascript" src="/Public/js/JQueryUI.js"></script>
<script type="text/javascript" src="/Public/js/SitemapHeader_INC.js"></script>
<script type="text/javascript" src="/Public/js/TableEditSubmit_INC.js"></script>
</head>
<body onload="" onresize="" onunload="">
<div id="Header" style="width: 1350px;"> 
<div class="Inner">    
<div class="Logo Right"></div>    
<div class="LabelButton Right" onclick="window.location.href = '__APP__/Login/logout'">退出</div>
<div class="LabelButton Right">帮助</div>
<div class="Label Right"><?=$_SESSION['UserName']?></div>
<a class="Application" href="">首页</a><div class="Label LabelNoPadding">&gt;</div><a class="Application" href="__APP__/TableView/Index/TableName/<?=$TableInfo[0]['Table']?>"><?=$TableInfo[0]['Alias']?></a><div class="Label LabelNoPadding">&gt;</div><div class="Title">编辑</div>  </div></div>

<div id="Content" class="MenuColapsed" style="min-height: 568px; width: auto;">  
 
<div class="Inner">    
<table class="MainLayout" id="MainLayoutTable" cellspacing="0" cellpadding="0" border="0" style="height: 568px; min-height: 568px;">      
<tbody><tr>        
<td valign="top" id="MainLayout" class="MainLayoutCell" style="max-height: 100%;">
<table style="width: 100%" cellpadding="0" cellspacing="0" border="0">
<thead class="MainLayoutHeader" id="MainLayoutHeader">
<tr>  
<td class="MainLayoutActions" style="height: 1px;">
<div class="ActionBigLabel"><?php if(is_array($TableList)) {?> 编辑 <?php } else{?>添加<?php }?> <?=$TableInfo[0]['Alias']?></div>
<div class="ActionButtonContainer" title="Save Changes">
<a id="ActionButtonSaveChanges" class="ActionButton ActionButtonAttention" onClick="Formsubmit(document.SingleRecordForm);">
<div class="Title">保存</div> 
</a>
</div>  
</td>
</tr>
</thead>
</table>
<form name="SingleRecordForm" id="SingleRecordForm" action="__APP__/TableEdit/Edit/List/<?=$_GET['List']?>" method="POST"> 
<input name="KeyID" type="hidden" value="<?=$TableList[0][$TableInfo[0]['Key']]?>">
<input name="TableName" type="hidden" value="<?=$TableInfo[0]['Table']?>">
<table name="XMLData" cellpadding="0" cellspacing="0">    
<tbody><tr>
<td>
<table class="Form" width="100%" cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr>

<?php
$FieldCount = count($TableFieldsInfo);
$FieldIndex = 0;
while($FieldIndex < $FieldCount){
	$FieldB = "";
    $HeaderB = "";

	for($i=0; $i <5; $i++){
		if($FieldIndex < $FieldCount){
			$HeaderB .= "<th class='Parent'>". $TableFieldsInfo[$FieldIndex]['Alias'] . "</th>";
			
			$FieldB .= "<td valign='top'><input type='text' maxlength='200' name='" . $TableFieldsInfo[$FieldIndex]['Field'] . "' tabindex='8' alias='Mobile' value='" . $TableList[0][$TableFieldsInfo[$FieldIndex]['Field']] . "'></td>";
		 }else{ 
			$HeaderB .= "<th class='Parent' width='100%'>&nbsp;</th>";
			$FieldB .= "<td>&nbsp;</td>";
		 }

        $FieldIndex += 1;
	}
?>
<tr>
<?php echo $HeaderB;?>
<th class="Parent" width="100%">&nbsp;</th>
</tr>
<tr>
<?php echo $FieldB;?>
<td width="100%">&nbsp;</td>
</tr>
<?php

}
?>
</tr>
</tbody>
</table>     
</td>    
</tr>  
</tbody>
</table> 

<div class="Pagination">
<div class="ActionButtonContainer" title="Save Changes">
<a id="ActionButtonSaveChanges" class="ActionButton ActionButtonAttention" onClick="Formsubmit(document.SingleRecordForm);">
<div class="Title">保存</div>  
</a>
</div>  
</div>
</form>        
</td>     
</tr>    
</tbody>
</table>  
</div>
</div>


 <div id="Footer" style="width: 1350px;"> 
 <div class="Inner">
 <div class="Version">15.01.01</div>
 </div>
</div>
<script type="text/javascript"> 
SetLayoutHeight();   
</script>
</body></html>